#include <iostream>
#include <vector>

using namespace std;

int candy(vector<int>& ratings){
    int n = ratings.size();
    if(n == 1) return 1;
    if(n == 2 && ratings[0] == ratings[1]) return 2;
    if(n == 2) return 3;
    int ans = 0;
    int sweets[n] = {};
    for(int i=0;i<n;i++) sweets[i] = 1;
    for(int i=1;i<n-1;i++)
}

// int candy(vector<int>& ratings) {
//     int n = ratings.size();
//     if(n == 1) return 1;
//     if(n == 2 && ratings[0] == ratings[1]) return 2;
//     if(n == 2) return 3;
//     int ans = 0;
//     int sweets[n] = {};
//     for(int i=0;i<n;i++) sweets[i] = 1    ;
//     for(int i=1;i<n-1;i++){
//         if(ratings[i] > ratings[i-1]) sweets[i]++;
//         if(ratings[i] > ratings[i+1]) sweets[i]++;
//         ans += sweets[i];
//     }
//     if(ratings[0] > ratings[1]) sweets[0]++;
//     if(ratings[n-1] > ratings[n-2]) sweets[n-1]++;
    
//     ans = ans + sweets[0] + sweets[n-1];
    
//     return ans;
// }

int main(){
    cout << "hello world" << endl;
    vector<int> r;
    r.push_back(1);
    r.push_back(0);
    r.push_back(2);
    
    candy(r);
    return 0;
}